package vip.zhenzicheng.jvm;

/**
 * @author zhenzicheng
 * @DESCRIPTION:
 * @DATE: 2022/05/14 5:47 PM
 */
public class TestDynamicLoad {
  static {
    System.out.println("******************** load TestDynamicLoad ********************");
  }

  public static void main(String[] args) {
    new A();
    System.out.println("-----------------------------------------");
    B b = null;
  }

  static class A {
    static {
      System.out.println("******************** load A ********************");
    }

    public A() {
      System.out.println("******************** initial A ********************");
    }
  }

  static class B {
    static {
      System.out.println("******************** laod B ********************");
    }

    public B() {
      System.out.println("******************** initial B ********************");
    }
  }
}
